using namespace std;
#include<iostream>
#include<unistd.h>
#include<signal.h>
void reaction(int signals)
{
    cout<<"I am a process and I received a signal: "<<signals<<endl;
}
int main()
{
    while(true)
    {
        signal(SIGINT,reaction);
        cout<<"I am a process"<<endl;
        sleep(1);
    }
}